package com.youlian.cloud.common.feign.config;

import com.youlian.cloud.common.feign.intercepor.FeignInterceptor;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author : liukx
 * @create : 2018/7/10 15:23
 * @email : liukx@elab-plus.com
 */
@Configuration
@Import({FeignInterceptor.class})
public class FeignConfigBean {


    /**
     * 设置打印日志的级别
     *
     * @return
     */
    @Bean
    public Logger.Level feignLevel() {
        return Logger.Level.BASIC;
    }

}
